Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review of AWS modules and subsequent correction of RKE/RKE2/K3S recipes #145

Closed
wants to merge 39 commits into from

Conversation

glovecchi0
Copy link

Reviewed AWS modules and rewrote AWS EC2 x RKE recipe.

No features have been modified or added, but only some issues have been resolved, including: #99 , #118 , #119 , and #120 .

The documentation has also been revised.

tfvars example:

prefix           = "glovecchio"
aws_region       = "eu-west-1"
instance_count   = 2
ssh_username     = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234"

@glovecchi0 glovecchi0 added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed don't merge it labels Jun 25, 2024
@glovecchi0
Copy link
Author

Rewrote AWS EC2 x RKE (split-role) recipe.

The documentation has also been revised.

tfvars example:

prefix             = "glovecchio"
aws_region         = "eu-west-1"
master_nodes_count = 1
worker_nodes_count = 1
ssh_username       = "ubuntu"
rancher_hostname   = "glovecchio"
rancher_password   = "Mypassword.1234"

@glovecchi0
Copy link
Author

Rewrote AWS EC2 x RKE2 recipe.

The documentation has also been revised.

tfvars example:

prefix           = "glovecchio"
aws_region       = "eu-west-1"
instance_count   = 2
ssh_username     = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234"

@glovecchi0
Copy link
Author

I will fix conflicts at the end of the review.

@glovecchi0
Copy link
Author

Added Rancher deployment to the AWS EC2 x RKE (split-role) recipe.

tfvars example:

prefix             = "glovecchio"
aws_region         = "eu-west-1"
server_nodes_count = 1
worker_nodes_count = 1
ssh_username       = "ubuntu"
rancher_hostname   = "glovecchio"
rancher_password   = "Mypassword.1234"

@glovecchi0
Copy link
Author

Rewrote AWS EC2 x K3S recipe.

The documentation has also been revised.

tfvars example:

prefix             = "glovecchio"
aws_region         = "eu-west-1"
server_nodes_count = 1
worker_nodes_count = 1
ssh_username       = "ubuntu"
rancher_hostname   = "glovecchio"
rancher_password   = "Mypassword.1234"

@glovecchi0 glovecchi0 removed don't merge it help wanted Extra attention is needed labels Jul 2, 2024
Copy link

@ajithijk ajithijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested all and worked very well.


```bash
AWS_PROFILE=<profile name> terraform plan -var-file terraform.tfvars
AWS_PROFILE=<profile name> terraform apply -var-file terraform.tfvars
terraform init -upgrade ; terraform apply -target=module.k3s-first-server.tls_private_key.ssh_private_key -target=module.k3s-first-server.local_file.private_key_pem -target=module.k3s-first-server.local_file.public_key_pem -target=module.k3s-first-server.aws_key_pair.key_pair -target=module.k3s-first-server.aws_vpc.vpc -target=module.k3s-first-server.aws_subnet.subnet -target=module.k3s-first-server.aws_security_group.sg_allowall -auto-approve ; terraform apply -auto-approve
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's explore if there is a way to avoid such a long terraform apply.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leodotcloud, fixed as requested; now everything works with a single command.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leodotcloud
Copy link
Contributor

@glovecchi0 can you take care of the conflicts?

@glovecchi0
Copy link
Author

@glovecchi0 can you take care of the conflicts?

Yes; I'll work on It.

Giovanni Lo Vecchio and others added 18 commits July 30, 2024 08:28
Reviewed tests for AWS EC2 and AWS EC2 x RKE x Rancher

Rebase

Reviewed tests for AWS EC2 and AWS EC2 x RKE2 x Rancher

Fixed code in path recipes/rke/split-roles/aws - Added Rancher deployment

Fixed AWS x RKE2 instances count

Rewrote AWS EC2 x K3S recipe

Reviewed tests for AWS EC2 x RKE (split-roles)

Fixed AWS x K3S README.md file

Fixed AWS x K3S README.md file

Fixed copy/paste issue

Rebase

Fixed all the AWS recipes

Fixed RKE split-roles recipe

One-destroy command - GKE x RKE,RKE2,K3s

Reviewed tests for AWS EC2 and AWS EC2 x RKE x Rancher

Fixed AWS x RKE2 instances count

Reviewed tests for AWS EC2 x RKE (split-roles)

Fixed AWS x K3S README.md file

Fixed copy/paste issue

Fixed RKE split-roles recipe

Revised standalone RKE module for AWS

Fixed recipes/standalone/aws/rke/README.md file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants